home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Graphics / PerfectPaint / rexx / box / PlaticWrap.rx < prev    next >
Encoding:
Text File  |  2000-10-31  |  754 b   |  45 lines

  1. /* Box arexx */
  2.  
  3.     options results
  4.   parse ARG Port x1 y1 x2 y2 b
  5.     ADDRESS value Port
  6.  
  7.     pp_GetDepth
  8.     D=result
  9.     IF D<24 then DO
  10.         pp_Warn 'This*script*is*only|for*24bits*Picture.'    
  11.         pp_PermitRefresh
  12.         Exit
  13.     END
  14.  
  15.     pp_ClosestColor 0 0 0
  16.     color=result
  17.     pp_SetApen color
  18.     pp_ClosestColor 255 255 255
  19.     color=result
  20.     pp_SetBpen color
  21.  
  22.     pp_ComposeReqOff
  23.   pp_Compose 0 100 0
  24.     pp_PicttoSpare
  25.   pp_SpareOnOff
  26.   pp_ColorBalance 0 0 0 255*-1 0 0
  27.   pp_LineArt 3
  28.     pp_EffectOn
  29.     pp_BoxF x1 y1 x2 y2
  30.   pp_GaussianBlur 10
  31.     pp_BoxF x1 y1 x2 y2
  32.   pp_LineArt 3
  33.     pp_BoxF x1 y1 x2 y2
  34.   pp_SpareToSten
  35.   pp_SpareOnOff
  36.     pp_UpdateUndoBox x1-1 y1-1 x2+1 y2+1
  37.   pp_MaskOn
  38.   pp_Compose 0 50 0
  39.   pp_Spare
  40.     pp_BoxF x1 y1 x2 y2
  41.   pp_MaskOff
  42.     pp_EffectOff
  43.     pp_ComposeReqOn    
  44.          
  45.